cmake_minimum_required(VERSION 3.10)
project(EigenHelloWorld)

set(CMAKE_CXX_STANDARD 11)

# 查找Eigen库
find_package(Eigen3 REQUIRED)

# 设置包含目录
include_directories(${EIGEN3_INCLUDE_DIR})

# 添加可执行文件
add_executable(EigenHelloWorld main.cpp)

# 链接Eigen库
target_link_libraries(EigenHelloWorld Eigen3::Eigen)
